package com.atguigu.gmall.cart.service;

import com.atguigu.gmall.model.cart.CartInfo;

import java.util.List;

/**
 * @author wk
 * @create 2021-09-07 19:17
 */
public interface CartInfoService {
    void addCart(Long skuId, Integer skuNum, String userId);

    CartInfo findCartInfo(Long skuId);

    // 获取购物车列表
    List<CartInfo> cartList(String userId, String userTempId);

    void checkCart(Long skuId, Integer isChecked, String userId);

    List<CartInfo> findCartInfoListByIsChecked(String userId);
}
